﻿using System;
using System.Web;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Collections;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;

using com.fly.sms;

namespace com.fly.sms
{
    public class CustomerNumberPoolGetDetailAction:BaseAction
    {
        public CustomerNumberPoolGetDetailAction(HttpContext contextTemp)
        {
            this.context = contextTemp;
        }
        public override void excute()
        {
            string NumberPoolId = context.Request["NumberPoolId"];
            DataTable rst = CustomerNumberPoolDetailService.findByNumberPoolId(NumberPoolId,startRow,pagePerSize);
            ht.Add("responseCode", "200");
            ht.Add("responseData", rst);
            string json = JsonConvert.SerializeObject(ht);
            context.Response.Write(json);           
        }
    }
}